package day06.Lambda;

import org.junit.Test;

import java.util.Collections;
import java.util.TreeSet;

public class StringLambdaDemo {
    @Test
    public void test(){
        TreeSet<String> treeSet= new TreeSet<>(( a, b ) -> b.compareTo(a));
        Collections.addAll(treeSet,"season","sadca","vrwtvgt","ertbvetb");
        System.out.println(treeSet);
    }
}
